package com.apptech.asynctaskdemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {

	Button button;
	TextView result;

	Intent in;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		//time = (EditText) findViewById(R.id.editText1);
	//	result = (EditText) findViewById(R.id.textview2);
		button = (Button) findViewById(R.id.button1);

		button.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//in =new Intent(MainActivity.this, MyProgress.class);
				System.out.println("In Main activiy");
				MyProgress myProgress=new MyProgress();
				myProgress.execute("Hello");

			}
		});

	}
}
